home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 23 / Amiga Format AFCD23 (Feb 1998, Issue 107).iso / -seriously_amiga- / shareware / graphics / sviewng / arexx-scripts / dooperation.rx < prev    next >
Text File  |  1997-12-01  |  1KB  |  67 lines

  1. /*
  2.    $VER: DoOperation.rx V6.21 (17.3.97)
  3.    © 1997 by Andreas R. Kleinert
  4.  
  5.    This script demonstrates loading, proecessing and saving
  6.    a graphics by using SViewNG's ARexxPort.
  7.  
  8. */
  9.  
  10. address command
  11.  
  12. SViewNG "-INSTALL_APPMENU=FALSE -INSTALL_APPICON=FALSE"
  13.  
  14. say ""
  15. say "ARexx: SViewNG has been started : Waiting a moment..."
  16.  
  17. wait 5
  18.  
  19. OPTIONS RESULTS
  20. SIGNAL ON ERROR
  21. SVNGPORT = 'SViewNG.rx'
  22. SVPORT   = 'SuperView.rx'
  23.  
  24. IF ~SHOW('P',SVPORT) THEN SVPORT = SVNGPORT
  25. IF ~SHOW('P',SVPORT) THEN DO
  26.   say "Could not locate ARexx port of SViewNG !"
  27.   CALL ErrorOut 0
  28. END
  29.  
  30. ADDRESS VALUE SVPORT
  31.  
  32. say "ARexx: Loading a PCX Graphics via the LOAD command"
  33. 'LOAD=TEST.PCX'
  34.  
  35.  
  36. say "ARexx: Processing Graphics"
  37. 'SVOPERATOR=Scale50'
  38. 'ACTION'
  39.  
  40.  
  41. say "ARexx: Saving Graphics as PCX"
  42. 'SAVE_TYPE=PCX V2.5-3.0'
  43. 'SAVE=TEST-OP.PCX'
  44.  
  45. address command wait 3
  46.  
  47. say "ARexx: Load this PCX Gfx now for control"
  48. 'SHOW=TEST-OP.PCX'
  49.  
  50. say "ARexx: O.K. : Let's quit !"
  51.  
  52. address command Wait 2
  53.  
  54. 'QUIT'
  55.  
  56. CALL ErrorOut 0
  57.  
  58.  
  59. /* Errorout procedure ----------------------- */
  60.  
  61. ErrorOut:
  62.         PARSE ARG ExitCode
  63.  
  64.         EXIT ExitCode
  65.  
  66.   END
  67.